<template>
	<view class="HBBanner">
		<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
			:duration="duration">
			<swiper-item>
				<view class="swiper-item">
					<image class="swiper-image" src="@/static/images/2.png" mode=""></image>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<image class="swiper-image" src="@/static/images/2.png" mode=""></image>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
	export default {
		name: "HBBanner",
		data() {
			return {
				background: ['color1', 'color2', 'color3'],
				indicatorDots: false,
				autoplay: true,
				interval: 5000,
				duration: 1000
			};
		}
	}
</script>

<style lang="scss">
	// 轮播图
	.HBBanner {
		width: 100%;
	}

	.swiper {
		height: 280rpx;

	}

	.swiper-item {
		height: 280rpx;
		border-radius: 24rpx;
		overflow: hidden;
 
	}
	.swiper-image{
		width: 100%;
		height: 100%;
	}
</style>